package com.myway.dto.pricing;

import java.io.Serializable;
import java.util.Date;

public class DTOCommission implements Serializable {
	/**
	 * 代理费用
	 */
	private static final long serialVersionUID = 3765026968344030251L;
	
	private String policyNo;
	private Date policyCreateDate; 
	
	private double agentFee = 0;
	private double spFee = 0;
	private double agentPer = 0;
	private double spPer = 0;
	private double agentFeeRate = 0;
	private double spFeeRate = 0;

	
	public String getPolicyNo() {
		return policyNo;
	}

	public void setPolicyNo(String policyNo) {
		this.policyNo = policyNo;
	}
	
	public Date getPolicyCreateDate() {
		return policyCreateDate;
	}

	public void setPolicyCreateDate(Date policyCreateDate) {
		this.policyCreateDate = policyCreateDate;
	}

	public double getAgentFee() {
		return agentFee;
	}

	public void setAgentFee(double agentFee) {
		this.agentFee = agentFee;
	}

	public double getSpFee() {
		return spFee;
	}

	public void setSpFee(double spFee) {
		this.spFee = spFee;
	}

	public double getAgentFeeRate() {
		return agentFeeRate;
	}

	public void setAgentFeeRate(double agentFeeRate) {
		this.agentFeeRate = agentFeeRate;
	}

	public double getSpFeeRate() {
		return spFeeRate;
	}

	public void setSpFeeRate(double spFeeRate) {
		this.spFeeRate = spFeeRate;
	}
	
	@Override
	public String toString() {
		StringBuilder sb = new StringBuilder();
		sb.append("Agent Fee: ").append(agentFee).append("\n")
			.append("SP Fee: ").append(spFee).append("\n");
		return sb.toString();
	}

	public double getAgentPer() {
		return agentPer;
	}

	public void setAgentPer(double agentPer) {
		this.agentPer = agentPer;
	}

	public double getSpPer() {
		return spPer;
	}

	public void setSpPer(double spPer) {
		this.spPer = spPer;
	}
}
